class AddAddressAndRequiredVolunteersToEvents < ActiveRecord::Migration
  def self.up
    add_column :events, :required_volunteers, :integer
    add_column :events, :address, :text
    add_column :events, :post_code, :string
    add_column :events, :map_coordinates, :string
    add_column :events, :contact_name, :string
    add_column :events, :contact_phone, :string
    add_column :events, :contact_email, :string
  end

  def self.down
    remove_column :events, :contact_email
    remove_column :events, :contact_phone
    remove_column :events, :contact_name
    remove_column :events, :map_coordinates
    remove_column :events, :post_code
    remove_column :events, :address
    remove_column :events, :required_volunteers
  end
end
